package com.ruoyi.project.system.shopconfig.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.system.shopconfig.mapper.ShopConfigMapper;
import com.ruoyi.project.system.shopconfig.domain.ShopConfig;
import com.ruoyi.project.system.shopconfig.service.IShopConfigService;
import com.ruoyi.common.utils.text.Convert;

/**
 * 配置信息设置Service业务层处理
 * 
 * @author f_baisi
 * @date 2020-06-18
 */
@Service
public class ShopConfigServiceImpl implements IShopConfigService 
{
    @Autowired
    private ShopConfigMapper shopConfigMapper;

    /**
     * 查询配置信息设置
     * 
     * @param id 配置信息设置ID
     * @return 配置信息设置
     */
    @Override
    public ShopConfig selectShopConfigById(String id)
    {
        return shopConfigMapper.selectShopConfigById(id);
    }

    /**
     * 查询配置信息设置列表
     * 
     * @param shopConfig 配置信息设置
     * @return 配置信息设置
     */
    @Override
    public List<ShopConfig> selectShopConfigList(ShopConfig shopConfig)
    {
        return shopConfigMapper.selectShopConfigList(shopConfig);
    }

    /**
     * 新增配置信息设置
     * 
     * @param shopConfig 配置信息设置
     * @return 结果
     */
    @Override
    public int insertShopConfig(ShopConfig shopConfig)
    {
        return shopConfigMapper.insertShopConfig(shopConfig);
    }

    /**
     * 修改配置信息设置
     * 
     * @param shopConfig 配置信息设置
     * @return 结果
     */
    @Override
    public int updateShopConfig(ShopConfig shopConfig)
    {
        return shopConfigMapper.updateShopConfig(shopConfig);
    }

    /**
     * 删除配置信息设置对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteShopConfigByIds(String ids)
    {
        return shopConfigMapper.deleteShopConfigByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除配置信息设置信息
     * 
     * @param id 配置信息设置ID
     * @return 结果
     */
    @Override
    public int deleteShopConfigById(String id)
    {
        return shopConfigMapper.deleteShopConfigById(id);
    }

    @Override
    public List<ShopConfig> findAll() {
        return shopConfigMapper.findAll();
    }
}
